package com.gtw.modules.base.service.impl;

import com.gtw.modules.base.service.TbCityService;
import com.gtw.modules.dao.TbCityDao;
import com.gtw.modules.entity.TbCity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/** 城市接口实现类
 * Created by wuye on 2018/1/26.
 */
@Service
public class TbCityServiceImpl implements TbCityService {

    @Autowired
    private TbCityDao tbCityDao;

    @Override
    public List<TbCity> findbyProvinecId(int provinceid) {
        return tbCityDao.findbyProvinecId(provinceid);
    }

    @Override
    public TbCity findByCityId(int id) {
        return tbCityDao.selectByPrimaryKey(id);
    }
}
